package com.ynu.springbootappdemo.dao;

import com.ynu.springbootappdemo.model.entity.Cart;
import com.ynu.springbootappdemo.model.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ICartDao extends JpaRepository<Cart,Long> {
    List<Cart> findAllByCustomer(User user);
}
